package com.nuoniu.sibanyun.entity.erp.barcode;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 条码管理-打印
 * </p>
 *
 * @author 白强
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bc_barcode_print")
@ApiModel(value="ErpBarcodePrint对象", description="条码管理-打印")
public class ErpBarcodePrint extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "条码规则ID")
    @TableField("barcode_rule_id")
    private Integer barcodeRuleId;

    @ApiModelProperty(value = "条码规则名称")
    @TableField("barcode_rule_name")
    private String barcodeRuleName;

    @ApiModelProperty(value = "条码规则编码")
    @TableField("barcode_rule_code")
    private String barcodeRuleCode;

    @ApiModelProperty(value = "单据类型唯一编码（业务对象）")
    @TableField("voucher_type_code")
    private String voucherTypeCode;

    @ApiModelProperty(value = "打印模板ID")
    @TableField("print_template_id")
    private Integer printTemplateId;

    @ApiModelProperty(value = "打印模板名称")
    @TableField("print_template_name")
    private String printTemplateName;

    @ApiModelProperty(value = "打印模板编码")
    @TableField("print_template_code")
    private String printTemplateCode;

    @ApiModelProperty(value = "打印机地址")
    @TableField("printer_address")
    private String printerAddress;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "源单明细")
    @TableField(exist = false)
    private List<ErpBarcodePrintSource> printSources;

    @ApiModelProperty(value = "条码明细")
    @TableField(exist = false)
    private List<ErpBarcodePrintDetail> printDetails;

    @ApiModelProperty(value = "保存 方式 ：1：合并生单  2：逐行生单 3：保存更新")
    @TableField(exist = false)
    Integer actionType;



}
